package com.ruoyi.web.controller.api;


import com.ruoyi.cat.domain.VO.ApiOracleVO;
import com.ruoyi.cat.domain.VO.SysOracleVO;
import com.ruoyi.cat.service.OracleService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "api-支付相关")
@RestController
@RequestMapping("/api/oracle")
public class OracleApiController extends BaseController {

    @Autowired
    private OracleService oracleService;

    @PostMapping("/scanCodePayOrder")
    @ApiOperation("支付下单")
    public AjaxResult apiCodePayOrder(@RequestBody ApiOracleVO apiOracleVO) {
        return success(oracleService.apiCodePayOrder(apiOracleVO));
    }

}
